#!/bin/bash
rundir=`dirname "$0"`
echo "$rundir"
/usr/local/mysql/bin/mysqld --defaults-file=/data/commentdb_3309/my.cnf -u mysql --pid-file="$rundir"/mysql.pid --datadir="$rundir" "$@" --log-error=error_log.txt --innodb_data_file_path=ibdata1:10M:autoextend --innodb_log_file_size=100M --innodb_log_files_in_group=4 --port=3309 --back_log=500 --max_connect_errors=10000 --max_connections=10000 --innodb-open-files=800 --innodb_additional_mem_pool_size=150M --innodb_buffer_pool_size=4G --innodb_log_buffer_size=10M --query_cache_size=100M --innodb_file_per_table=1 --innodb_status_file=innodb_staus.txt  --innodb_flush_log_at_trx_commit=2 --sync_binlog=1 --bulk_insert_buffer_size=128M --slow-query-log-file=slow_query.txt --slow_query_log=1 --interactive_timeout=60 --wait_timeout=2000 --lower_case_table_names=1 --character-set-server='utf8' --collation-server='utf8_general_ci' --socket="$rundir"/mysql.sock &
